package com.jeesite.modules.kj.api.vo.request;

import com.jeesite.modules.kj.entity.KjQuestion;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class QuestionRequestVo {

    @ApiModelProperty(name="questionType", value ="问题类型", example = "1")
    String questionType;

    @ApiModelProperty(name="content", value ="问题内容", example = "1")
    String content;


    @ApiModelProperty(name="title", value ="问题标题", example = "1")
    String title;

    @ApiModelProperty(name="imgs", value ="图片列表|分割", example = "1")
    String imgs;


    public KjQuestion convertToEntity(){
        KjQuestion kjQuestion = new KjQuestion();
        kjQuestion.setContent(content);
        kjQuestion.setImgs(imgs);
        kjQuestion.setQuestionType(questionType);
        kjQuestion.setTitle(title);
        return kjQuestion;
    }
}
